home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2235 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: newsfeed.internetmci.com!xmission!inteleNET!usenet
  2. From: cjmorgan@intele.net (Jason V. Morgan)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Game Programming 21 days: problems compiling code
  5. Date: 19 Jan 1996 23:50:22 GMT
  6. Organization: inteleNET Internet Services
  7. Message-ID: <4dpanu$1fc@vodka.intele.net>
  8. References: <4dn7sh$590@ixnews6.ix.netcom.com>
  9. NNTP-Posting-Host: provomodem1-p1-8.intele.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <4dn7sh$590@ixnews6.ix.netcom.com>, psilocyn@ix.netcom.co says...
  15. >
  16. >I got the book Teach Yourself Game Programming in 21 Days recently, and
  17. >the source code was written with a microsoft compiler.  My question then
  18. >is,  how can I change the MS code to work with Borland code (if possible)? 
  19. >
  20.  
  21. I was able to convert that exact same code for Borland C++ 3.1 and compile 
  22. and run everything.  One problem you may have is that the author used 
  23. _dos_alloc (or something like that) to get memory for the sound blaster 
  24. interface.  Borland can't have dos allocate its memory with its heap based 
  25. memory manager in use.  You should change the calls to malloc, you can still 
  26. force it to a segment boundry.
  27.  
  28.